//http://msdn.microsoft.com/zh-cn/library/39cwe7zf.aspx
//Search setlocale within msdn
//Primary language      Sublanguage      Language string
//Chinese          Chinese (simplified)  "chinese-simplified" or "chs"
//Chinese          Chinese (traditional) "chinese-traditional" or "cht"
//Czech            Czech                 "csy" or "czech"
    
#include<string>
#include<iostream>
#include<locale>
    
using namespace std;
void show_local_info(){

    cout << "#########################################\n";
    cout << "##\t global locale: " << locale().name() << "\n";
    cout << "##\t user's preferred locale: " << locale("").name() << "\n";
    cout << "#########################################\n";
}
int main()
{
    wstring wstr1(L"wstring class");          
    wstring wstr2(L"汉字与字符");
    show_local_info();
	/*
    locale prevloc;
    locale loc("");
    prevloc = wcout.imbue(loc);   
    show_local_info();
    wcout<<wstr1<<'\n'<<wstr2<<'\n'<<endl;
	*/return 0;
}
